package com.sm.user.feigns.fallback;

import com.sm.tool.entity.po.Tickets_;
import com.sm.user.feigns.TicketFeignClient;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Collections;
import java.util.List;

/**
 * @program: practice
 * @description:
 * @author: liqitian.
 * @create: 2019-11-27 14:29
 **/
@Service
@Slf4j
@RequestMapping("fallBack/api/v2/ticket")
public class TicketFeignClientFallBack implements TicketFeignClient {

    @Setter
    private Throwable cause;


    @Override
    public Tickets_ queryLikeTicketCode(String ticketCode) {
        log.info("query_like_ticket_code fllback:{}",cause);
        return null;
    }

    @Override
    public List<Tickets_> queryTicketListByIds(Long[] ticketIds) {
        log.info("query_like_ticket_code fllback:{}",cause);
        return Collections.emptyList();
    }
}
